<template>
    <div>
        <div class="title">周末去哪儿</div>
        <ul>
            <li class="recommendCt border-bottom" v-for="item of list" :key="item.id">
              <div class="img">
                <img class="recommendImg" :src="item.imgUrl">
              </div>
                <div class="recomendDesc">
                    <p class="descTitle">{{item.title}}</p>
                    <p class="descContent">{{item.desc}}</p>
                </div>
            </li>
        </ul>
    </div>
</template>
<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: Array
  },
  data: function () {
    return {
    }
  }
}
</script>
<style lang="stylus" scoped>
@import '~styles/varible.styl';
@import '~styles/mixin.styl';
  .title
    background-color #eee
    line-height .8rem
    text-indent .2rem
    color $darkTextColor
  .recommendCt
    width 100%
    overflow hidden
    .img
      height 0
      overflow hidden
      padding-bottom 38.3%
      width 100%
    .recommendImg
      width 100%
    .recomendDesc
      padding .2rem
      .descTitle
        line-height .54rem
        font-size .32rem
        color #000
        font-family Arial,"Microsoft Yahei","Helvetica Neue",Helvetica,sans-serif
        ellipsis()
      .descContent
        line-height .4rem
        color $descText
        ellipsis()
</style>
